package com.ggh.jinjilive.ui.home.video.videoplay;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProvider;

import com.ggh.jinjilive.BaseApplication;
import com.ggh.jinjilive.R;
import com.ggh.jinjilive.databinding.FragmentPersonalInformationBinding;
import com.ggh.jinjilive.databinding.FragmentVideoBinding;
import com.ggh.jinjilive.mobile.home.video.VideoList;
import com.ggh.jinjilive.ui.BaseFragment;

public class PersonalInformationFragment extends BaseFragment<FragmentPersonalInformationBinding>{
    private VideoPlayViewModel videoPlayViewModel;


    //视频信息
    private VideoList videoList;
    public PersonalInformationFragment(VideoList videoList){
        this.videoList = videoList;

    }


    @Override
    public void onCreate(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BaseApplication.getInstance().getAppComponent().doInjectionMain(this);
        videoPlayViewModel = new ViewModelProvider(this,viewModelFactory).get(VideoPlayViewModel.class);
    }


    @Override
    public int initContentView(LayoutInflater inflater, @Nullable @org.jetbrains.annotations.Nullable ViewGroup container, @Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        return R.layout.fragment_personal_information;
    }


    @Override
    public void initView() {
        super.initView();
        binding.cs.setText(videoList.getNickname());
    }
}
